<h1>Listing mentees</h1>

<table>
  <tr>
    <th>First name</th>
    <th>Last name</th>
    <th>Middle name</th>
    <th>Dob</th>
    <th>Joined</th>
  </tr>

<% for mentee in @mentees %>
  <tr>
    <td><%=h mentee.first_name %></td>
    <td><%=h mentee.last_name %></td>
    <td><%=h mentee.middle_name %></td>
    <td><%=h mentee.dob %></td>
    <td><%=h mentee.joined %></td>
    <td><%= link_to 'Show', mentee %></td>
    <td><%= link_to 'Edit', edit_mentee_path(mentee) %></td>
    <td><%= link_to 'Destroy', mentee, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New mentee', new_mentee_path %>
